#include<iostream>
using namespace std;

int main(){
    int A,B,C;
    cin>>A>>B>>C;
    double sum;
    sum=A*0.2+B*0.3+C*0.5;
    int all = (int)sum;
    cout<<all<<endl;
    return 0;
}
